<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>
        清除颜色
    </title>
</head>

<body onload="main()">
    <canvas id="example" width="400" height="400" style="border: 1px solid red;"> canves </canvas>
    <script src="../js/cuon-utils.js"></script>
    <script src="../js/webgl-debug.js"></script>
    <script src="../js/webgl-utils.js"></script>
    <script>
        function main() {

            var canves = document.getElementById("example");

            var gl = getWebGLContext(canves);

           gl.clearColor(0,1,0,1)
           gl.clear(gl.COLOR_BUFFER_BIT)
        }

    </script>
</body>

</html>